package com.heima.feign.client;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.pojos.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("leadnews-user")
public interface ApUserClient {
    @RequestMapping("/api/v1/user/{id}")
    public ResponseResult<ApUser> findUserById(@PathVariable("id") Long id);
}
